<?php

class PlandetailsController extends AppController
{
	var $name = 'Plandetails';
	var $helpers = array('Html', 'Javascript', 'Ajax');

	function update($id = null) 
	{
		$this->checkSession();
		if ($id != null)
		{
			$this->Plandetail->id = $id;
			$this->set('recordToUpdate', $this->Plandetail->read());
		}
    }

	function save($id = null)
	{
		$this->checkSession();

		$this->Plandetail->id = $id;
		if ($this->Plandetail->save($this->params['data']))
		{
			$this->set('detail', $this->Plandetail->read());
		}
    }
}

?>
